package com.sqx.modules.disease.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sqx.modules.disease.entity.Diagnostic;
import com.sqx.modules.disease.service.DiagnosticService;
import com.sqx.modules.disease.utils.ResponseData;
import com.sqx.modules.disease.vo.DiagnosticVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 诊疗配置表(Diagnostic)表控制层
 *
 * @author makejava
 * @since 2023-11-20 21:53:22
 */
@RestController
@RequestMapping("diagnostic")
public class DiagnosticController {
    /**
     * 服务对象
     */
    @Resource
    private DiagnosticService diagnosticService;


    /**
     * 新增数据
     *
     * @return 新增结果
     */
    @PostMapping("/save")
    public ResponseData<String> insert(@RequestBody DiagnosticVo diagnosticVo) {
        return  diagnosticService.saveData(diagnosticVo);
    }

}

